package io.zerax.moyu_chat.protocol;

public class Utils
{
	public static MoyuOperator fromByte(byte b) {
		switch (b) {
			case 0: return MoyuOperator.Request;
			case 1: return MoyuOperator.Reply;
			case 2: return MoyuOperator.Send;
			case 3: return MoyuOperator.Transmit;
			case 4: return MoyuOperator.Query;
			case 5: return MoyuOperator.Tell;
			default: return MoyuOperator.Unknown;
		}
	}
}
